﻿<UserControl x:Class="navigation.Controls.BurnDownChart"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:s="http://schemas.microsoft.com/surface/2008"
             xmlns:chartToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="320" d:DesignWidth="480">   
    
    <Grid>
        <chartToolkit:Chart Name="BDChart" Title="BurnDown Chart" FontFamily="Tekton Pro" Margin="0" BorderThickness="2" BorderBrush="Gray" Opacity="0.7" Loaded="BDChart_Loaded" DataContextChanged="BDChart_DataContextChanged">
            <chartToolkit:LineSeries Name="RealPlot" Title="Realtime Plot" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding [1]}" IsSelectionEnabled="False">
                <chartToolkit:LineSeries.DataPointStyle>
                    <Style TargetType="chartToolkit:LineDataPoint">
                        <Setter Property="Visibility" Value="Collapsed"/>
                        <Setter Property="Background" Value="violet"/>
                    </Style>
                </chartToolkit:LineSeries.DataPointStyle>
            </chartToolkit:LineSeries>
            <chartToolkit:LineSeries Name="IdealPlot" Title="Ideal plot" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding [0]}" IsSelectionEnabled="False">
                <chartToolkit:LineSeries.DataPointStyle>
                    <Style TargetType="chartToolkit:LineDataPoint">
                        <Setter Property="Visibility" Value="Collapsed"/>
                        <Setter Property="Background" Value="blue"/>
                        <Setter Property="Opacity" Value="0" />
                    </Style>
                </chartToolkit:LineSeries.DataPointStyle>
            </chartToolkit:LineSeries>

            <chartToolkit:Chart.Axes>
                <chartToolkit:CategoryAxis Orientation="X" Title="Days"/>
                <chartToolkit:LinearAxis Orientation="Y" Title="Remaining Effort"/>
            </chartToolkit:Chart.Axes>
            
        </chartToolkit:Chart>
    </Grid>
</UserControl>
